package com.cskaoyan.mapper;

import com.cskaoyan.bean.Permission_empower;

import com.cskaoyan.bean.PermissionExample_empower;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper_empower {


    int deleteByExample(PermissionExample_empower example);

    Integer insertPermissionsByRoleId(@Param("permissions") List<String> permissions, @Param("roleId") String roleId);


    List<String> selectPermissionList(String roleId);

    List<String> selectAllPermission();


    long countByExample(PermissionExample_empower example);


    int deleteByPrimaryKey(Integer id);

    int insert(Permission_empower record);

    int insertSelective(Permission_empower record);

    List<Permission_empower> selectByExample(PermissionExample_empower example);

    Permission_empower selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Permission_empower record, @Param("example") PermissionExample_empower example);

    int updateByExample(@Param("record") Permission_empower record, @Param("example") PermissionExample_empower example);

    int updateByPrimaryKeySelective(Permission_empower record);

    int updateByPrimaryKey(Permission_empower record);

    List<Permission_empower> selectCondition(@Param("example") PermissionExample_empower example, @Param("fields") String fields);

}